home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 98 / Skunkware 98.iso / src / mail / pine3.96.tar.gz / pine3.96.tar / pine3.96 / pine / makefile.os2 < prev    next >
Makefile  |  1996-05-23  |  6KB  |  217 lines

  1. # $Id: makefile.os2,v 4.3 1996/05/23 16:36:59 mikes Exp $
  2. #
  3. #            T H E    P I N E    M A I L   S Y S T E M
  4. #
  5. #   Laurence Lundblade and Mike Seibel
  6. #   Networks and Distributed Computing
  7. #   Computing and Communications
  8. #   University of Washington
  9. #   Administration Building, AG-44
  10. #   Seattle, Washington, 98195, USA
  11. #   Internet: lgl@CAC.Washington.EDU
  12. #             mikes@CAC.Washington.EDU
  13. #
  14. #   Please address all bugs and comments to "pine-bugs@cac.washington.edu"
  15. #
  16. #
  17. #   Pine and Pico are registered trademarks of the University of Washington.
  18. #   No commercial use of these trademarks may be made without prior written
  19. #   permission of the University of Washington.
  20. #
  21. #   Pine, Pico, and Pilot software and its included text are Copyright
  22. #   1989-1996 by the University of Washington.
  23. #
  24. #   The full text of our legal notices is contained in the file called
  25. #   CPYRIGHT, included with this distribution.
  26. #
  27. #
  28. #   Pine is in part based on The Elm Mail System:
  29. #    ***********************************************************************
  30. #    *  The Elm Mail System  -  Revision: 2.13                             *
  31. #    *                                                                     *
  32. #    *             Copyright (c) 1986, 1987 Dave Taylor               *
  33. #    *             Copyright (c) 1988, 1989 USENET Community Trust    *
  34. #    ***********************************************************************
  35. #
  36. #
  37.  
  38. # Common macros
  39.  
  40. CC=    gcc
  41. CP=    cp
  42. MAKE=    make
  43. MV=    mv
  44. RM=    rm -f
  45.  
  46. OS=    os2
  47.  
  48. # emx OMF format build
  49. # Used to build .dlls with data exports
  50.  
  51. DEBUG=
  52. ZOMF=    -Zomf
  53. O=    .obj
  54. A=    .lib
  55. E=    .exe
  56. D=    .dll
  57. AR=    emxomfar r
  58. ZLIB=    -Zcrtdll
  59. ZOPT=    -O3 -fno-strength-reduce -mprobe
  60. ZDEF=    -DOS2 -DOMF
  61.  
  62. .SUFFIXES: .c .obj .exe
  63.  
  64. # emx AOUT format build
  65. # Useful for debugging with gdb
  66.  
  67. #DEBUG=    -g
  68. #ZOMF=    
  69. #O=    .o
  70. #A=    .a
  71. #D=    .dll
  72. #E=    .exe
  73. #AR=    ar rus
  74. #ZLIB=    -Zcrtdll
  75. #ZOPT=    -O3 -fno-strength-reduce -mprobe
  76. #ZDEF=    -DOS2
  77.  
  78. #.SUFFIXES: .c .o .exe
  79.  
  80. .c$O: ; $(CC) $(ZOMF) $(CFLAGS) -c $<
  81.  
  82. #
  83. #     Make file for the Pine mail system for OS/2
  84. #
  85. #
  86. #   Most commonly fiddled flags for compiler.
  87. #   Uncomment the setttings desired here
  88. #
  89. OPTIMIZE=    $(DEGBUG) $(ZOPT)
  90. MOUSE=        -DMOUSE
  91. DDEBUG=        -DDEBUG
  92. IMAPDIR=    ../c-client
  93. PICODIR=    ../pico
  94.  
  95. LIBES=        -lsocket
  96. LIBPICO=    -L$(PICODIR) -lpicolib
  97. LIBCCLIENT=    -L$(IMAPDIR) -lc-client
  98. LOCLIBES=    $(LIBPICO) $(LIBCCLIENT)
  99.  
  100. CFLAGS=        $(DEBUG) $(ZDEF) -DHELPFILE -DFASTVIO -DSYSTYPE=\"OS2\" $(MOUSE) $(OPTIMIZE) $(DDEBUG)
  101. LDFLAGS=    $(DEBUG) $(ZLIB) $(ZOMF)
  102.  
  103. HELPFILES=    pine.ndx helptext.h
  104.  
  105. #helpsrc=    helptext.c
  106. #helpobj=    helptext$O
  107.  
  108. obj=        addrbook$O adrbklib$O args$O context$O filter$O \
  109.         folder$O help$O imap$O init$O mailcap$O mailcmd$O \
  110.         mailindx$O mailpart$O mailview$O newmail$O \
  111.         other$O pine$O reply$O screen$O send$O signals$O \
  112.         status$O strings$O ttyin$O ttyout$O os$O $(helpobj)
  113.  
  114. cfiles=     addrbook.c adrbklib.c args.c context.c filter.c \
  115.         folder.c help.c imap.c init.c mailcap.c mailcmd.c \
  116.         mailindx.c mailpart.c mailview.c newmail.c other.c pine.c \
  117.         reply.c screen.c send.c signals.c status.c strings.c ttyin.c \
  118.         ttyout.c os.c $(helpsrc)
  119.  
  120. pine$E:        $(obj)
  121.         ..\pico\blddate.exe bdate.c
  122.         $(CC) $(ZOMF) -c bdate.c
  123.         $(CC) $(LDFLAGS) $(CFLAGS) -o pine.exe $(obj) bdate$O $(LOCLIBES) $(LIBES)
  124.  
  125. $(HELPFILES):    helpindx$E
  126.         helpindx pine.hlp $(HELPFILES)
  127.  
  128. helpindx$E:    helpindx.c
  129.         $(CC) $(CFLAGS) -o $@ helpindx.c
  130.  
  131. # this is not part of pine
  132. pine-use$E:    pine-use.c
  133.         $(CC) $(CFLAGS) -o pine-use.exe pine-use.c
  134.  
  135. clean:
  136.         $(RM) *$O os.h os.c helptext.c helptext.h
  137.         ( cd osdep && make clean )
  138.  
  139. HEADERS=    headers.h pine.h os.h helptext.h context.h \
  140.         $(IMAPDIR)/mail.h $(IMAPDIR)/osdep.h
  141.  
  142. os.h:        osdep/os-os2.h
  143.         $(RM) os.h
  144.         $(CP) osdep/os-os2.h os.h
  145.  
  146. os.c:        osdep/os-os2.c
  147.         $(RM) os.c
  148.         $(CP) osdep/os-os2.c os.c
  149.  
  150. #helptext.c helptext.h:    pine.hlp
  151. #        cmplhelp.cmd pine.hlp helptext.c helptext.h
  152.  
  153. osdep/os-os2.c: \
  154.     osdep/header.os2 \
  155.     osdep/canacces.os2 \
  156.     osdep/filesize \
  157.     osdep/writ_dir \
  158.     osdep/creatdir.os2 \
  159.     osdep/rename.dos \
  160.     osdep/bld_path.dos \
  161.     osdep/lstcmpnt.dos \
  162.     osdep/expnfldr.dos \
  163.     osdep/fnexpand.os2 \
  164.     osdep/fltrname.os2 \
  165.     osdep/diskquot.non \
  166.     osdep/readfile.os2 \
  167.     osdep/tempfile \
  168.     osdep/tempnam.dos \
  169.     osdep/coredump \
  170.     osdep/hostname \
  171.     osdep/domnames \
  172.     osdep/canonicl.dos \
  173.     osdep/jobcntrl.dos \
  174.     osdep/err_desc.dos \
  175.     osdep/pw_stuff.dos \
  176.     osdep/chnge_pw.dos \
  177.     osdep/mimedisp \
  178.     osdep/fgetpos \
  179.     osdep/dosextra \
  180.     osdep/pipe.os2 \
  181.     osdep/sendmail.dos \
  182.     osdep/execview.os2 \
  183.     osdep/print.os2 \
  184.     osdep/debuging.os2 \
  185.     osdep/os-os2.ic
  186.     ( cd osdep && $(MAKE) -f makefile.os2 includer.exe os-os2.c )
  187.  
  188. # dependancies
  189.  
  190. addrbook$O:    addrbook.c  $(HEADERS) adrbklib.h
  191. adrbklib$O:    adrbklib.c  $(HEADERS) adrbklib.h
  192. args$O:        args.c      $(HEADERS)
  193. context$O:    context.c   $(HEADERS) $(IMAPDIR)/misc.h
  194. filter$O:    filter.c    $(HEADERS) $(PICODIR)/pico.h
  195. folder$O:    folder.c    $(HEADERS)
  196. help$O:        help.c      $(HEADERS)
  197. helptext$O:    helptext.c  helptext.h
  198. imap$O:        imap.c      $(HEADERS)
  199. init$O:        init.c      $(HEADERS)
  200. mailcap$O:    mailcap.c   $(HEADERS)
  201. mailcmd$O:    mailcmd.c   $(HEADERS)
  202. mailindx$O:    mailindx.c  $(HEADERS)
  203. mailpart$O:    mailpart.c  $(HEADERS)
  204. mailview$O:    mailview.c  $(HEADERS)
  205. newmail$O:    newmail.c   $(HEADERS)
  206. os$O:        os.c         $(HEADERS)
  207. other$O:    other.c     $(HEADERS)
  208. pine$O:        pine.c      $(HEADERS)
  209. reply$O:    reply.c     $(HEADERS)
  210. screen$O:    screen.c    $(HEADERS)
  211. send$O:        send.c      $(HEADERS) $(IMAPDIR)/smtp.h $(PICODIR)/pico.h
  212. signals$O:    signals.c   $(HEADERS)
  213. status$O:    status.c    $(HEADERS)
  214. strings$O:    strings.c   $(HEADERS)
  215. ttyin$O:    ttyin.c     $(HEADERS)
  216. ttyout$O:    ttyout.c    $(HEADERS)
  217.